//
//  STEmailService.swift
//  Story
//
//  Created by 汤泽川 on 2019/4/2.
//  Copyright © 2019 汤泽川. All rights reserved.
//

import Foundation
class STEmailService {
    @discardableResult
    public func sendVerifyCode(toEmail email : String) -> STResponse<String> {
        let response = STResponse<String>()
        STEmailApi.sendEmail(email: email) { (error) in
            response.execute(nil, error)
        }
        return response
    }
}
